<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

<link href="css/apps/picture/list.css" type="text/css" rel="stylesheet" />
<script src="scripts/apps/picture/list.js" type="text/javascript"></script>
<table id="list" class="table table-striped">
	<thead>
		<tr>
			<th>名称</th>
			<th>预览</th>
			<th>管理</th>

		</tr>
	</thead>
	<tbody>
		<c:forEach items="${pageData.rows}" var="item">
			<tr>
				<td>${item.name}</td>
				<td><img src="picture/picture!view?bean.id=${item.id}"
					width="100" height="100" alt="${item.name}" /></td>
				<td>
					<div class="btn-group">
						<button class="btn">管理</button>
						<button class="btn dropdown-toggle" data-toggle="dropdown">
							<span class="caret"></span>
						</button>
						<ul class="dropdown-menu">
							<li><a href="#">删除</a></li>
							<li><a href="javascriopt:;"
								onclick="selectMe('${item.id}@picture/picture!view?bean.id=${item.id}')">选择</a></li>
						</ul>
					</div>
				</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="3">${pageData.pagination}</td>
		</tr>
	</tfoot>
</table>
<form class="well form-inline" 
      method="post"
      enctype="multipart/form-data"
 action="picture/picture!upload" target="queryFrame">
	<input type="file" name="upLoad" /> <button type="submit" class="btn">上传</button>
</form>